package org.evs.odesk.programmingSkills;

/**
 * @author Walter
 * 
 *         Write a program that prints the numbers between 258 and 393 (both inclusive) which do not end with 5. The
 *         program should print the output so as to have one value per line. The output would therefore follow the below
 *         format:
 * 
 * 
 *         value1 value2 value3 . . . . . so on
 * 
 */
public class Task_Not5 {

	public static void main(String[] args) {
		for (int i = 258; i <= 393; i++) {
			if (i % 5 != 0 || i % 10 == 0) {
				System.out.println(i);
			}
		}
	}
}
